<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例导航栏</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        .banner,
        .nav {
            width: 760px;
            margin: auto;
        }

        .banner {
            height: 150px;
            background-color: pink;
        }

        .banner img {
            width: 100%;
            height: 100%;
        }

        .nav {
            height: 32px;
            background: url(../第一天/a.jpg) repeat-x;
        }

        .nav ul li {
            float: left;
            
        }

        .nav ul li a {
            display: block;
            width: 80px;
            height: 32px;
            line-height: 32px;
            /* background-color: blueviolet; */
            background: url(../第一天/a.jpg) no-repeat;
            font-size: 12px;
            color: #40510a;
            text-decoration: none;
            text-align: center;
        }

        .nav ul li a:hover {
            background: url(aa.jpg);
            color: white;
        }
    </style>
</head>

<body>
    <div class="banner">
        <img src="../第一天/a.jpg" alt="">
    </div>
    <div class="nav">
        <ul>
            <li><a href="#">网站首页</a></li>
            <li><a href="#">网站首页</a></li>
            <li><a href="#">网站首页</a></li>
            <li><a href="#">网站首页</a></li>
            <li><a href="#">网站首页</a></li>
            <li><a href="#">网站首页</a></li>
        </ul>
    </div>
</body>

</html>